package com.troll.wanandroid.design.activity

import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.troll.wanandroid.CoroutinesActivity
import com.troll.wanandroid.R

/**
 *
 * @Author:   TangPeng
 * @Time:     3/23/21
 * @Remark:
 */
class TestActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_test)
        println("AActivity  onCreate()")
        startActivity(Intent(this, CoroutinesActivity::class.java))
    }

    override fun onStart() {
        super.onStart()
        println("AActivity  onStart()")
    }

    override fun onPause() {
        super.onPause()
        println("AActivity  onPause()")
    }

    override fun onStop() {
        super.onStop()
        println("AActivity  onStop()")
    }

    override fun onDestroy() {
        super.onDestroy()
        println("AActivity  onDestroy()")
    }

    override fun onResume() {
        super.onResume()
        println("AActivity  onResume()")
    }

    override fun onPostCreate(savedInstanceState: Bundle?) {
        super.onPostCreate(savedInstanceState)
        println("AActivity  onPostCreate()")
    }

    override fun onPostResume() {
        super.onPostResume()
        println("AActivity  onPostResume()")
    }
}
